package xyz.weblade.test.event;

import xyz.weblade.context.ApplicationListener;

import java.util.Date;

public class CustomEventListener implements ApplicationListener<CustomEvent> {

    @Override
    public void onApplicationEvent(CustomEvent event) {
        System.out.println("自定义的也收到："+event.getSource()+"消息；时间："+ new Date());
        System.out.println("自定义也收到消息："+event.getId()+":"+event.getMessage());
    }
}
